package artid.com.arttogo.bean;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * 
*    
* 项目名称：ArtworkArt   
* 类名称：SpecialListParser   
* 类描述：专场列表实体类+解析   
* 创建人：耿卫斌   
* 创建时间：2017-3-10 下午1:22:42   
*
 */
public class SpecialListParser extends AppItem implements Serializable {
	private static final long serialVersionUID = 1L;
	private String id;//专场id
	private String title;//专场名称
	private String imgurl;//专场logo
	private String lotrecord_num;//拍品备案数量
	private String lot_num;//拍品数量
	private String preview_address;//预展地址
	private String auction_address;//拍卖会地址
	private String seller_name;//机构名称
	private int status;//专场状态 当是往期的时候状态为0 1.待预展 2.预展中 3.
	private String start_time;//预展/拍卖开始时间
	private String end_time;//预展/拍卖结束时间
	private String address;//机构地址
	private int is_remind;//0 已经开拍，不能点击1.添加，2. 查看提醒
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		id = obj.optString("id");
		title = obj.optString("title");
		imgurl = obj.optString("imgurl");
		lotrecord_num = obj.optString("lotrecord_num");
		lot_num = obj.optString("lot_num");
		preview_address = obj.optString("preview_address");
		auction_address = obj.optString("auction_address");
		seller_name = obj.optString("seller_name");
		status = obj.optInt("status");
		start_time = obj.optString("start_time");
		end_time = obj.optString("end_time");
		address = obj.optString("address");
		is_remind = obj.optInt("is_remind");
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	public String getLotrecord_num() {
		return lotrecord_num;
	}
	public void setLotrecord_num(String lotrecord_num) {
		this.lotrecord_num = lotrecord_num;
	}
	public String getLot_num() {
		return lot_num;
	}
	public void setLot_num(String lot_num) {
		this.lot_num = lot_num;
	}
	public String getPreview_address() {
		return preview_address;
	}
	public void setPreview_address(String preview_address) {
		this.preview_address = preview_address;
	}
	public String getAuction_address() {
		return auction_address;
	}
	public void setAuction_address(String auction_address) {
		this.auction_address = auction_address;
	}
	public String getSeller_name() {
		return seller_name;
	}
	public void setSeller_name(String seller_name) {
		this.seller_name = seller_name;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getStart_time() {
		return start_time;
	}
	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}
	public String getEnd_time() {
		return end_time;
	}
	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getIs_remind() {
		return is_remind;
	}
	public void setIs_remind(int is_remind) {
		this.is_remind = is_remind;
	}
	public SpecialListParser() {
		super();
	}
	public SpecialListParser(String id, String title, String imgurl,
							 String lotrecord_num, String lot_num, String preview_address,
							 String auction_address, String seller_name, int status,
							 String start_time, String end_time, String address, int is_remind) {
		super();
		this.id = id;
		this.title = title;
		this.imgurl = imgurl;
		this.lotrecord_num = lotrecord_num;
		this.lot_num = lot_num;
		this.preview_address = preview_address;
		this.auction_address = auction_address;
		this.seller_name = seller_name;
		this.status = status;
		this.start_time = start_time;
		this.end_time = end_time;
		this.address = address;
		this.is_remind = is_remind;
	}
	@Override
	public String toString() {
		return "SpecialListParser [id=" + id + ", title=" + title + ", imgurl="
				+ imgurl + ", lotrecord_num=" + lotrecord_num + ", lot_num="
				+ lot_num + ", preview_address=" + preview_address
				+ ", auction_address=" + auction_address + ", seller_name="
				+ seller_name + ", status=" + status + ", start_time="
				+ start_time + ", end_time=" + end_time + ", address="
				+ address + ", is_remind=" + is_remind + "]";
	}
}
